(function(angular) {
	'use strict';
	angular.module("fs.waf").config(['modalServiceProvider', 'routerServiceProvider', function(modalServiceProvider, routerServiceProvider) {
		
		modalServiceProvider.setDialogsModule('apf.invoice', {
			title : 'title.dialogs.lookup',
			pageId : 'APF_LOOKUP_INVOICE',
			templateUrl : 'apf/view/${theme}/lookup/invoice/lookupInvoice.html',
			controller : 'apf.lookup.invoiceController',
			controllerAs : 'vm',
			dependentFiles : [ 'apf/view/${theme}/lookup/invoice/lookupInvoiceController.js' ],
			layoutConfig : 'do/apf/layout/lookup/invoice',
			i18nConfig : 'do/apf/resource/lookup/invoice',
			authorizationConfig : 'do/apf/authorization/lookup/invoice',
			validatorConfig : 'do/apf/validator/lookup/invoice'
		});
		modalServiceProvider.setDialogsModule('apf.seller', {
			title : 'title.dialogs.lookup',
			pageId : 'APF_LOOKUP_SELLER',
			templateUrl : 'apf/view/${theme}/lookup/seller/lookupSeller.html',
			controller : 'apf.lookup.sellerController',
			controllerAs : 'vm',
			dependentFiles : [ 'apf/view/${theme}/lookup/seller/lookupSellerController.js' ],
			layoutConfig : 'do/apf/layout/lookup/seller',
			i18nConfig : 'do/apf/resource/lookup/seller',
			authorizationConfig : 'do/apf/authorization/lookup/seller',
			validatorConfig : 'do/apf/validator/lookup/seller'
		});
		
		modalServiceProvider.setDialogsModule('apf.stopPayment', {
			title : 'title.dialogs.lookup',
			pageId : 'APF_LOOKUP_stopPayment',
			templateUrl : 'apf/view/${theme}/lookup/stopPayment/lookupStopPayment.html',
			controller : 'apf.lookup.stopPaymentController',
			controllerAs : 'vm',
			dependentFiles : [ 'apf/view/${theme}/lookup/stopPayment/lookupStopPaymentController.js' ],
			layoutConfig : 'do/apf/layout/lookup/stopPayment',
			i18nConfig : 'do/apf/resource/lookup/stopPayment',
			authorizationConfig : 'do/apf/authorization/lookup/stopPayment',
			validatorConfig : 'do/apf/validator/lookup/stopPayment'
		});
		
		modalServiceProvider.setDialogsModule('apf.paymentDetail', {
			title : 'title.dialogs.lookup',
			pageId : 'APF_LOOKUP_PAYMENTDETAIL',
			templateUrl : 'apf/view/${theme}/lookup/paymentDetail/lookupPaymentDetail.html',
			controller : 'apf.lookup.paymentDetailController',
			controllerAs : 'vm',
			dependentFiles : [ 'apf/view/${theme}/lookup/paymentDetail/lookupPaymentDetailController.js' ],
			layoutConfig : 'do/apf/layout/lookup/paymentDetail',
			i18nConfig : 'do/apf/resource/lookup/paymentDetail',
			authorizationConfig : 'do/apf/authorization/lookup/paymentDetail',
			validatorConfig : 'do/apf/validator/lookup/paymentDetail'
		});
		
				
		modalServiceProvider.setDialogsModule('apf.pi', {
			title : 'title.dialogs.lookup',
			pageId : 'APF_LOOKUP_PI',
			templateUrl : 'apf/view/${theme}/lookup/pi/lookupPi.html',
			controller : 'apf.lookup.piController',
			controllerAs : 'vm',
			dependentFiles : [ 'apf/view/${theme}/lookup/pi/lookupPiController.js' ],
			layoutConfig : 'do/apf/layout/lookup/pi',
			i18nConfig : 'do/apf/resource/lookup/pi',
			authorizationConfig : 'do/apf/authorization/lookup/pi',
			validatorConfig : 'do/apf/validator/lookup/pi'
		});
	} ]);
})(angular);
